<template>
  <div class="main">
    <div class="wrap">
      <div>
        <img :src="wx" alt @click="handleShare">
        <p>微信好友</p>
      </div>
      <div class="handle" @click="handleClose">
        <span>取消</span>
      </div>
    </div>
  </div>
</template>

<script>
import wx from "../../assets/common/wx.png";
export default {
  data() {
    return {
      wx
    };
  },
  methods: {
    handleShare() {
      this.$emit("share");
    },
    handleClose() {
      this.$emit("close");
    }
  }
};
</script>

<style lang="less" scoped>
.main {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  .wrap {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    img {
      width: 13vw;
      height: 13vw;
      display: block;
      margin: 6vw auto 3vw;
    }
    p {
      width: 100%;
      text-align: center;
      font-size: 3.5vw;
      margin-bottom: 3vw;
    }
  }
  .handle {
    text-align: center;
    border-top: 1px solid #f9f9f9;
    font-size: 4vw;
    padding: 4vw;
  }
}
</style>